package com.zbkc.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolFactory {

	private static ThreadPoolFactory ourInstance = new ThreadPoolFactory();
	private ExecutorService threadPool = Executors.newCachedThreadPool();

	public static ThreadPoolFactory getInstance() {
		return ourInstance;
	}

	public void execute(Runnable paramRunnable) {
		this.threadPool.submit(paramRunnable);
	}

}
